export const getMessageInfo = (code: number | string): string => {
  let message = '';
  switch (code) {
    case 400:
      message = '请求错误(Bad Request)';
      break;
    case 403:
      message = '禁止访问(Forbidden)';
      break;
    case 401:
      message = '未授权(Unauthorized)';
      break;
    case 404:
      message = '未找到(Not Found)';
      break;
    case 500:
      message = '服务器错误(Internal Server Error)';
      break;
    case 503:
      message = '服务不可用(Service Unavailable)';
      break;
    default:
      message = '未知错误';
  }
  return message;
};
